.class Lcom/netease/newsreader/activity/ShowComments$31$1$1;
.super Landroid/os/AsyncTask;
.source "ShowComments.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/ShowComments$31$1;->onClick(Landroid/content/DialogInterface;I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/os/AsyncTask",
        "<",
        "Ljava/lang/String;",
        "Ljava/lang/Integer;",
        "Ljava/util/Map;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$2:Lcom/netease/newsreader/activity/ShowComments$31$1;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/ShowComments$31$1;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/ShowComments$31$1$1;->this$2:Lcom/netease/newsreader/activity/ShowComments$31$1;

    .line 1126
    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method


# virtual methods
.method protected bridge varargs synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 1
    check-cast p1, [Ljava/lang/String;

    invoke-virtual {p0, p1}, Lcom/netease/newsreader/activity/ShowComments$31$1$1;->doInBackground([Ljava/lang/String;)Ljava/util/Map;

    move-result-object v0

    return-object v0
.end method

.method protected varargs doInBackground([Ljava/lang/String;)Ljava/util/Map;
    .locals 7
    .parameter "params"

    .prologue
    const/4 v6, 0x0

    .line 1129
    const-string v3, "wap"

    aget-object v4, p1, v6

    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowComments$31$1$1;->this$2:Lcom/netease/newsreader/activity/ShowComments$31$1;

    invoke-static {v5}, Lcom/netease/newsreader/activity/ShowComments$31$1;->access$0(Lcom/netease/newsreader/activity/ShowComments$31$1;)Lcom/netease/newsreader/activity/ShowComments$31;

    move-result-object v5

    invoke-static {v5}, Lcom/netease/newsreader/activity/ShowComments$31;->access$0(Lcom/netease/newsreader/activity/ShowComments$31;)Lcom/netease/newsreader/activity/ShowComments;

    move-result-object v5

    invoke-static {v3, v4, v5}, Lcom/netease/newsreader/util/HttpUtils;->getDocShortUrl(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    .line 1130
    .local v1, shorturl:Ljava/lang/String;
    const-string v3, "www"

    aget-object v4, p1, v6

    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowComments$31$1$1;->this$2:Lcom/netease/newsreader/activity/ShowComments$31$1;

    invoke-static {v5}, Lcom/netease/newsreader/activity/ShowComments$31$1;->access$0(Lcom/netease/newsreader/activity/ShowComments$31$1;)Lcom/netease/newsreader/activity/ShowComments$31;

    move-result-object v5

    invoke-static {v5}, Lcom/netease/newsreader/activity/ShowComments$31;->access$0(Lcom/netease/newsreader/activity/ShowComments$31;)Lcom/netease/newsreader/activity/ShowComments;

    move-result-object v5

    invoke-static {v3, v4, v5}, Lcom/netease/newsreader/util/HttpUtils;->getDocShortUrl(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    .line 1131
    .local v2, wwwshorturl:Ljava/lang/String;
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    .line 1132
    .local v0, map:Ljava/util/Map;
    const-string v3, "wap"

    invoke-interface {v0, v3, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 1133
    const-string v3, "www"

    invoke-interface {v0, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 1134
    return-object v0
.end method

.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    check-cast p1, Ljava/util/Map;

    invoke-virtual {p0, p1}, Lcom/netease/newsreader/activity/ShowComments$31$1$1;->onPostExecute(Ljava/util/Map;)V

    return-void
.end method

.method protected onPostExecute(Ljava/util/Map;)V
    .locals 8
    .parameter "result"

    .prologue
    .line 1139
    invoke-super {p0, p1}, Landroid/os/AsyncTask;->onPostExecute(Ljava/lang/Object;)V

    .line 1141
    const-string v4, "wap"

    invoke-interface {p1, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 1142
    .local v2, shorturl:Ljava/lang/String;
    const-string v4, "www"

    invoke-interface {p1, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    .line 1144
    .local v3, wwwshorturl:Ljava/lang/String;
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$31$1$1;->this$2:Lcom/netease/newsreader/activity/ShowComments$31$1;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments$31$1;->access$0(Lcom/netease/newsreader/activity/ShowComments$31$1;)Lcom/netease/newsreader/activity/ShowComments$31;

    move-result-object v4

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments$31;->access$0(Lcom/netease/newsreader/activity/ShowComments$31;)Lcom/netease/newsreader/activity/ShowComments;

    move-result-object v4

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments;->access$104(Lcom/netease/newsreader/activity/ShowComments;)Ljava/lang/String;

    move-result-object v1

    .line 1145
    .local v1, sharetitle:Ljava/lang/String;
    if-eqz v1, :cond_0

    .line 1146
    const-string v4, "\u539f\u6587\uff1a"

    const-string v5, ""

    invoke-virtual {v1, v4, v5}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v1

    .line 1149
    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-string v4, "android.intent.action.VIEW"

    invoke-direct {v0, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 1150
    .local v0, sendIntent:Landroid/content/Intent;
    const-string v4, "sms_body"

    new-instance v5, Ljava/lang/StringBuilder;

    iget-object v6, p0, Lcom/netease/newsreader/activity/ShowComments$31$1$1;->this$2:Lcom/netease/newsreader/activity/ShowComments$31$1;

    invoke-static {v6}, Lcom/netease/newsreader/activity/ShowComments$31$1;->access$0(Lcom/netease/newsreader/activity/ShowComments$31$1;)Lcom/netease/newsreader/activity/ShowComments$31;

    move-result-object v6

    invoke-static {v6}, Lcom/netease/newsreader/activity/ShowComments$31;->access$0(Lcom/netease/newsreader/activity/ShowComments$31;)Lcom/netease/newsreader/activity/ShowComments;

    move-result-object v6

    invoke-virtual {v6}, Lcom/netease/newsreader/activity/ShowComments;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v7, 0x7f0b0043

    invoke-virtual {v6, v7}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 1151
    const-string v6, "\u300a"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    if-eqz v1, :cond_1

    .end local v1           #sharetitle:Ljava/lang/String;
    :goto_0
    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\u300b"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    .line 1152
    iget-object v6, p0, Lcom/netease/newsreader/activity/ShowComments$31$1$1;->this$2:Lcom/netease/newsreader/activity/ShowComments$31$1;

    invoke-static {v6}, Lcom/netease/newsreader/activity/ShowComments$31$1;->access$0(Lcom/netease/newsreader/activity/ShowComments$31$1;)Lcom/netease/newsreader/activity/ShowComments$31;

    move-result-object v6

    invoke-static {v6}, Lcom/netease/newsreader/activity/ShowComments$31;->access$0(Lcom/netease/newsreader/activity/ShowComments$31;)Lcom/netease/newsreader/activity/ShowComments;

    move-result-object v6

    invoke-virtual {v6}, Lcom/netease/newsreader/activity/ShowComments;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v7, 0x7f0b0049

    invoke-virtual {v6, v7}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ":"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    .line 1153
    iget-object v6, p0, Lcom/netease/newsreader/activity/ShowComments$31$1$1;->this$2:Lcom/netease/newsreader/activity/ShowComments$31$1;

    invoke-static {v6}, Lcom/netease/newsreader/activity/ShowComments$31$1;->access$0(Lcom/netease/newsreader/activity/ShowComments$31$1;)Lcom/netease/newsreader/activity/ShowComments$31;

    move-result-object v6

    invoke-static {v6}, Lcom/netease/newsreader/activity/ShowComments$31;->access$0(Lcom/netease/newsreader/activity/ShowComments$31;)Lcom/netease/newsreader/activity/ShowComments;

    move-result-object v6

    invoke-virtual {v6}, Lcom/netease/newsreader/activity/ShowComments;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v7, 0x7f0b0044

    invoke-virtual {v6, v7}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, " "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    .line 1154
    const-string v6, " "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/netease/newsreader/activity/ShowComments$31$1$1;->this$2:Lcom/netease/newsreader/activity/ShowComments$31$1;

    invoke-static {v6}, Lcom/netease/newsreader/activity/ShowComments$31$1;->access$0(Lcom/netease/newsreader/activity/ShowComments$31$1;)Lcom/netease/newsreader/activity/ShowComments$31;

    move-result-object v6

    invoke-static {v6}, Lcom/netease/newsreader/activity/ShowComments$31;->access$0(Lcom/netease/newsreader/activity/ShowComments$31;)Lcom/netease/newsreader/activity/ShowComments;

    move-result-object v6

    invoke-virtual {v6}, Lcom/netease/newsreader/activity/ShowComments;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v7, 0x7f0b0045

    invoke-virtual {v6, v7}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, " "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 1150
    invoke-virtual {v0, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1155
    const-string v4, "vnd.android-dir/mms-sms"

    invoke-virtual {v0, v4}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 1156
    iget-object v4, p0, Lcom/netease/newsreader/activity/ShowComments$31$1$1;->this$2:Lcom/netease/newsreader/activity/ShowComments$31$1;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments$31$1;->access$0(Lcom/netease/newsreader/activity/ShowComments$31$1;)Lcom/netease/newsreader/activity/ShowComments$31;

    move-result-object v4

    invoke-static {v4}, Lcom/netease/newsreader/activity/ShowComments$31;->access$0(Lcom/netease/newsreader/activity/ShowComments$31;)Lcom/netease/newsreader/activity/ShowComments;

    move-result-object v4

    invoke-virtual {v4, v0}, Lcom/netease/newsreader/activity/ShowComments;->startActivity(Landroid/content/Intent;)V

    .line 1157
    return-void

    .line 1151
    .restart local v1       #sharetitle:Ljava/lang/String;
    :cond_1
    const-string v1, ""

    goto/16 :goto_0
.end method
